package com.ruibang.glass.quality.entity;

import com.alibaba.fastjson.annotation.JSONField;
import com.baomidou.mybatisplus.annotation.*;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import java.time.LocalDateTime;

import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

/**
 * <p>
 * 间隔纸受入信息
 * </p>
 *
 * @author wujie
 * @since 2024-03-18
 */

@ApiModel(value = "间隔纸受入信息")
@TableName("g_quality_interval_paper")
@Data
public class IntervalPaper {

    @ApiModelProperty(value = "间隔纸受入ID")
    @TableId(value = "paper_id", type = IdType.ASSIGN_ID)
    private String paperId;
    @ApiModelProperty(value = "间隔纸lotNo")
    private String lotNo;
    @ApiModelProperty(value = "检查日期")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JSONField(format = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime checkTime;
    @ApiModelProperty(value = "外观有无异常")
    private String abnormal;
    @ApiModelProperty(value = "产品型号(G8.5,G8.6,G8.6+,G8.7)")
    private String glassModel;
    @ApiModelProperty(value = "全长尺寸")
    private Float wholeSize;
    @ApiModelProperty(value = "厚度1")
    private Float thicknessOne;
    @ApiModelProperty(value = "厚度2")
    private Float thicknessTwo;
    @ApiModelProperty(value = "厚度3")
    private Float thicknessThree;
    @ApiModelProperty(value = "厚度4")
    private Float thicknessFour;
    @ApiModelProperty(value = "厚度5")
    private Float thicknessFive;
    @ApiModelProperty(value = "受入1")
    private Float accessOne;
    @ApiModelProperty(value = "受入2")
    private Float accessTwo;
    @ApiModelProperty(value = "受入3")
    private Float accessThree;
    @ApiModelProperty(value = "准备使用时1")
    private Float prepareOne;
    @ApiModelProperty(value = "准备使用时2")
    private Float prepareTwo;
    @ApiModelProperty(value = "准备使用时3")
    private Float prepareThree;
    @ApiModelProperty(value = "用完时1")
    private Float finishOne;
    @ApiModelProperty(value = "用完时2")
    private Float finishTwo;
    @ApiModelProperty(value = "用完时3")
    private Float finishThree;
    @ApiModelProperty(value = "左侧幅宽")
    private Float leftWide;
    @ApiModelProperty(value = "右侧幅宽")
    private Float rightWide;
    @ApiModelProperty(value = "两端直径差≤10mm")
    private Float bothDiameterDiff;
    @ApiModelProperty(value = "同一端直径差≤4mm")
    private Float oneDiameterDiff;
    @ApiModelProperty(value = "受入检查人")
    private String checkUser;
    @ApiModelProperty(value = "使用测定人")
    private String measureUser;
    @ApiModelProperty(value = "剩余测定人")
    private String surplusUser;
    @ApiModelProperty(value = "受入检查人名称")
    @TableField(exist = false)
    private String checkUserName;
    @ApiModelProperty(value = "使用测定人名称")
    @TableField(exist = false)
    private String measureUserName;
    @ApiModelProperty(value = "剩余测定人名称")
    @TableField(exist = false)
    private String surplusUserName;
    @ApiModelProperty(value = "使用区域")
    private String useArea;
    @ApiModelProperty(value = "使用时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JSONField(format = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime useTime;
    @ApiModelProperty(value = "使用完时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JSONField(format = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime finishTime;
    @ApiModelProperty(value = "备注")
    private String remark;
    @ApiModelProperty(value = "是否删除(1:是,0:否)")
    @TableLogic
    private String isDelete;
}
